<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div  id="mei" style="height: 316px;width: 400px" ></div>
</body>
<script type="text/javascript" src="/res/jquery.min.js"></script>
<script>
    var execFun = function(){
        var styleNode = document.createElement('style');
        styleNode.type = "text/css";
        styleNode.innerHTML =`#app > div > div {
        margin-top: 0.6rem;
        margin-bottom: 0.6rem;
    }
    #app > div > div > div + div {
        display: none;
    }

    .waimai_protocol {
        font-size: .27rem;
        color: #999;
        margin-top: .1rem;
        text-align: center;
        display: block;
    }

    html::-webkit-scrollbar {
        display: none;
    }
    body::-webkit-scrollbar {
        display: none;
    }
        `;
        document.children[0].appendChild(styleNode);
        var node = document.createElement('link');
        node.rel = 'stylesheet';
        node.href = 'https://iov-www.cdn.bcebos.com/waimai/index.css';
        document.getElementsByTagName('head')[0].appendChild(node);

        var isLoginNotLoaded = true;
        while (isLoginNotLoaded) {
            var loginWarp = document.getElementById('iLoginComp');
            if (loginWarp) {
                isLoginNotLoaded = false;
                var link = document.createElement('a');
                link.href = '//i.waimai.meituan.com/node/account/agreement';
                // link.className = 'waimai_protocol';
                link.style = 'display:block;font-size:.27rem;color: #999;margin-top: .1rem;text-align: center;';
                link.text = '查看美团协议与说明';
                loginWarp.appendChild(link);
            }
        }
    }
    $("#mei").load("fake.html",execFun);
</script>
</html>